.photo-viewer .icon {
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center center;
    cursor: pointer;
}

.photo-viewer .icon.icon-close {
    background-image: url(img/icon-close.png);
    width: 32px;
    height: 32px;
}

.photo-viewer .icon.icon-close:hover {
    background-image: url(img/icon-close-hover.png);
}

.photo-viewer .icon.icon-scale-auto {
    background-image: url(img/icon-scale-auto.png);
    width: 20px;
    height: 20px;
}

.photo-viewer .icon.icon-scale-auto:hover {
    background-image: url(img/icon-scale-auto-hover.png);
}

.photo-viewer .icon.icon-last {
    width: 60px;
    height: 60px;
    display: inline-block;
    background-image: url(img/icon-last.png);
}

.photo-viewer .icon.icon-last:hover {
    background-image: url(img/icon-last-hover.png);
}

.photo-viewer .icon.icon-next {
    width: 60px;
    height: 60px;
    display: inline-block;
    background-image: url(img/icon-next.png);
}

.photo-viewer .icon.icon-next:hover {
    background-image: url(img/icon-next-hover.png);
}

.photo-viewer .icon.icon-scale-up {
    background-image: url(img/icon-scale-up.png);
    width: 20px;
    height: 20px;
}

.photo-viewer .icon.icon-scale-up:hover {
    background-image: url(img/icon-scale-up-hover.png);
}

.photo-viewer .icon.icon-scale-down {
    background-image: url(img/icon-scale-down.png);
    width: 20px;
    height: 20px;
}

.photo-viewer .icon.icon-scale-down:hover {
    background-image: url(img/icon-scale-down-hover.png);
}

.photo-viewer .icon.icon-loading {
    background-image: url(img/icon-loading.png);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    animation: animation-round 1s infinite linear;
}

@keyframes animation-round {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.photo-viewer {
    display: block;
    height: 100%;
    width: 100%;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
}

.photo-viewer .mask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #000;
    opacity: 0.5;
}

.photo-viewer .btn {
    display: inline-block;
    cursor: pointer;
    z-index: 2;
    user-select: none;
}

.photo-viewer .btn-close {
    position: absolute;
    right: 20px;
    top: 20px;
}

.photo-viewer .btn-last {
    position: absolute;
    left: 20px;
    top: calc(50% - 30px);
}

.photo-viewer .btn-next {
    position: absolute;
    right: 20px;
    top: calc(50% - 30px);
}

.photo-viewer .tool-bar {
    width: 160px;
    height: 36px;
    line-height: 44px;
    background-color: #333333;
    position: absolute;
    bottom: 30px;
    left: calc(50% - 80px);
    text-align: center;
    z-index: 2;
}

.photo-viewer .btn-tool:not(:first-child) {
    margin-left: 16px;
    width: 20px;
    height: 20px;
}

.photo-viewer .photo-container {
    display: inline-block;
    border: 1px solid transparent;
    width: auto;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    cursor: pointer;
    user-select: none;
}
.photo-viewer .photo-container .current-photo{
    cursor: move;
    user-select: none;
}